<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Whether a field is set</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.islenient.html">IntlCalendar::isLenient</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.isweekend.html">IntlCalendar::isWeekend</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intlcalendar.isset" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::isSet</h1>
  <p class="verinfo">(PHP 5.5.0, PECL &gt;= 3.0.0a1)</p><p class="refpurpose"><span class="refname">IntlCalendar::isSet</span> &mdash; <span class="dc-title">Whether a field is set</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.isset-description">
  <h3 class="title">说明</h3>
  <p class="para">
   面向对象风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>IntlCalendar::isSet</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$field</code></span>
   )</div>

  <p class="para rdfs-comment">
   过程化风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>intlcal_is_set</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.intlcalendar.html" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$cal</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$field</code></span>
   )</div>

  <p class="para rdfs-comment">
   Returns whether a field is set (as opposed to <a href="intlcalendar.clear.html" class="link">clear</a>). Set fields take priority over
   unset fields and their default values when the date/time is being
   calculated. Fields set later take priority over fields set earlier.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.isset-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">cal</code></em></dt>

    <dd>

     <p class="para">
      The IntlCalendar resource.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">field</code></em></dt>

    <dd>

     

<p class="para">
 One of the <a href="class.intlcalendar.html" class="classname">IntlCalendar</a> date/time <a href="class.intlcalendar.html#intlcalendar.constants" class="link">field constants</a>. These are integer
 values between <em>0</em> and
 <strong><code>IntlCalendar::FIELD_COUNT</code></strong>.
</p>

    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.isset-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Assuming there are no argument errors, returns <strong><code>TRUE</code></strong> iif the field is set.
  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-intlcalendar.isset-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   See the example on <span class="function"><a href="intlcalendar.clear.html" class="function">IntlCalendar::clear()</a></span>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-intlcalendar.isset-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="intlcalendar.clear.html" class="methodname" rel="rdfs-seeAlso">IntlCalendar::clear()</a> - Clear a field or all fields</span></li>
    <li class="member"><span class="methodname"><a href="intlcalendar.set.html" class="methodname" rel="rdfs-seeAlso">IntlCalendar::set()</a> - Set a time field or several common fields at once</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.islenient.html">IntlCalendar::isLenient</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.isweekend.html">IntlCalendar::isWeekend</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
